This page requires JavaScript to be enabled for full functionality.

I encountered the error message "failed to create shim task: OCI runtime create failed" when trying to install nvidia-docker2 with the command `sudo apt-get install -y nvidia-docker2`. How can I resolve this issue?

Answered on : 2024-01-24

SourcesAnswer

Improve the Answer

The error message "failed to create shim task: OCI runtime create failed" often occurs when there are compatibility issues or misconfigurations with Docker and NVIDIA drivers. Here are steps to resolve it:

1. Update NVIDIA Drivers:

- Make sure you have the latest NVIDIA drivers installed on your system. You can use `sudo apt install nvidia-driver` followed by a reboot [1][2].

2. Update Docker:

- Ensure Docker is up to date. You can use `sudo apt-get update` followed by `sudo apt-get upgrade docker.io` [9].

3. Reinstall nvidia-docker2:

- After updating drivers and Docker, reinstall nvidia-docker2 with `sudo apt-get install -y nvidia-docker2` [1].

4. Reboot:

- Reboot your system to ensure all changes take effect [1][2].

These steps should resolve the "failed to create shim task" error and allow you to use nvidia-docker2 successfully.

Glarity
Glarity

SourcesRelated

User-shared questions
Require assistance? or Tired of chatting with AI?
Don’t worry, a human is here to help you!
Copyright © 2024 Sparticle Inc.